/****************************************************
*	OSMF Edge Media Player version 1.2.0
* 
*	Author: Emanuele Manco
* 	E-Mail: hello@flashedge.net
*	Web: http://activeden.net/user/flashedge
*  
*****************************************************/

package net.flashedge.events 
{
	import flash.events.Event;
	
	
	public class Actions
	{
		
		public var object;
		
		public function Actions() 
		{
			
		}
		
		public function animate(obj):void {
			switch (obj.name) {
			case "ring":
				trace ("rotating...");
				object = obj;
				obj.addEventListener(Event.ENTER_FRAME, rotate);
			break;
			}
		}
		
		private function rotate(e:Event):void 
		{
			object.rotation += 5;
		}
		
		public function functionExists(obj:Object, name:String):Boolean {
			if ( obj == null ) return false;
			if (obj.hasOwnProperty(name)){
				return true;
			} else { return false; }
		}
		
	}

}